package crmdna.helpandsupport;

import static crmdna.common.OfyService.ofyCrmDna;

public class HelpAndSupport {

	static ConfigHelpProp getConfigHelpProp() {
		ConfigHelpEntity entity = ofyCrmDna().load()
				.type(ConfigHelpEntity.class).id("KEY").get();

		if (entity == null) {
			// save default values
			entity = new ConfigHelpEntity();
			ofyCrmDna().save().entity(entity).now();
		}

		return entity.toProp();
	}
}
